﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="goods_add03.aspx.cs" Inherits="WebSite.admin.product.goods_add03" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>上海叶盟实业后台管理系统</title>
    <link href="../main.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
        parent.maintitle.innerHTML = "商品管理";
        parent.contentmain.innerHTML = "<span class='title01'>所在位置：</span>添加新商品-其他信息。&nbsp;&nbsp;<img src='images/sort_desc.gif' /> <a href='product/goods.aspx' target='content'><font color=#ff0000>商品列表</font></a>"
    </script>
    <script language='javascript'>
	var path=(window.top.location).toString();
	if(path.indexOf('login.aspx')==-1){
	if (path.indexOf('index.aspx')==-1){
	 window.top.location='index.aspx';
	}
	}
	function clicka()
	{
	<% if (Request.QueryString["pid"] != null){}else{%>
	alert("- 商品名称不能为空。\n- 商品分类不能不选。");
	return false;
	<%} %>
	}
	</script>
	<script type="text/javascript" language="javascript">
	    var i = 1
	    function addFile() {
	        if (i < 8) {
	            var str = '<BR>&nbsp;&nbsp;&nbsp; 颜色<input name="text" type="text" style="width: 60px" maxlength="20" /> 上传图片<input type="file" name="File" runat="server" style="width: 200px"/>'
	            document.getElementById('MyFile').insertAdjacentHTML("beforeEnd", str)

	        }
	        else {
	            alert("您一次最多只能上传8张图片！")
	        }
	        i++
	    } 
   </script> 
	<script language="javascript" src="../../js/function.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <center>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F1F4F7">
<tr>
<td height="382" align="center" valign="top">
  <br />
  <%if (Request.QueryString["pid"] != null){ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="goods_add.aspx?pid=<%=Request.QueryString["pid"]%>">通用信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add02.aspx?pid=<%=Request.QueryString["pid"]%>">详细描述</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add08.aspx?pid=<%=Request.QueryString["pid"]%>">商品参数</a></td-->
      <td bgcolor="#C9D2DA"><a href="goods_add03.aspx?pid=<%=Request.QueryString["pid"]%>" class="menu02">其他信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add04.aspx?pid=<%=Request.QueryString["pid"]%>">商品相册</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add05.aspx?pid=<%=Request.QueryString["pid"]%>">关联商品</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add06.aspx?pid=<%=Request.QueryString["pid"]%>">配件</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add07.aspx?pid=<%=Request.QueryString["pid"]%>">关联文章</a></td>
    </tr>
  </table>
  <%}else{ %>
  <table width="90%" border="1" cellpadding="3" cellspacing="1" bordercolor="#E2E7EB">
    <tr align="center">
      <td bgcolor="#E2E7EB"><a href="goods_add.aspx">通用信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add02.aspx">详细描述</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add08.aspx">商品参数</a></td-->
      <td bgcolor="#C9D2DA"><a href="goods_add03.aspx" class="menu02">其他信息</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add04.aspx">商品相册</a></td>
      <td bgcolor="#E2E7EB"><a href="goods_add05.aspx">关联商品</a></td>
      <!--td bgcolor="#E2E7EB"><a href="goods_add06.aspx">配件</a></td-->
      <td bgcolor="#E2E7EB"><a href="goods_add07.aspx">关联文章</a></td>
    </tr>
  </table>
  <%} %>
  <br />
  <table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
      <tr>
          <td align="right" class="title01" width="25%">
              商品排序：</td>
          <td align="left"><input value="0" name="proorder" id="proorder" runat="server" />
          </td>
      </tr>
    <tr style="display:none">
      <td width="25%" align="right" class="title01">商品重量：</td>
      <td align="left"><input name="proweight1" id="proweight1" runat="server" />
          <select name="proweight2" id="proweight2" runat="server">
            <option value="千克" selected="selected">千克</option>
            <option value="克">克</option>
        </select></td>
    </tr>
    <tr style="display:none">
      <td align="right" class="title01">商品尺寸：</td>
      <td align="left"><input name="prokey" id="prokey" runat="server" style="width: 208px" /><font color="red">多种尺寸用,号分开(如：S,M,L,XL,XXL)</font></td>
    </tr>
      <tr style="display:none">
          <td align="right" class="title01">
              商品颜色：</td>
          <td align="left">
          <asp:Panel ID="Panel5" runat="server" Width="100%"> 
          
          <table width="90%" border="0" cellpadding="0" cellspacing="0" bgcolor=#ffffff>
    <!-- 图片列表 -->
        <tr>
          <td>
          <asp:DataList ID="DataList1" runat="server" RepeatColumns="6" CellPadding="4" ForeColor="#333333" Height="96px" Width="98%">
           <ItemTemplate>
                   <div id="gallery_1" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;">
                    <a href="goods_add03.aspx?speid=<%# DataBinder.Eval(Container.DataItem, "speid")%>&pid=<%# DataBinder.Eval(Container.DataItem, "proid")%>&action=del" onclick="if (confirm('您确实要删除该颜色信息吗？')){ }else{return false;}">[-]</a><br />
                    <img src="../../uploadfile/<%# DataBinder.Eval(Container.DataItem, "spepic")%>" height="30" border="0" /><br />
                    <input value="<%# DataBinder.Eval(Container.DataItem, "spename")%>" size="3" name="content_<%# DataBinder.Eval(Container.DataItem, "speid")%>" id="content_<%# DataBinder.Eval(Container.DataItem, "speid")%>"/>
                  </div>
            </ItemTemplate>
          </asp:DataList>    
                  </td>
              </tr>
              
        <!-- 上传图片 -->
        <tr>
          <td align="left">
          <P id="MyFile">
          <font color="red">(图片大小30×30)<br /></font>
          <a onclick="addFile()" href="#">[+]</a> 颜色<input name="text" type="text" style="width: 60px" maxlength="20" />
            上传图片<input id="File1" type="file" name="File" runat="server" style="width: 200px"/> </P></td>
        </tr>
      </table>
  
          </asp:Panel>
          </td>
      </tr>
    <tr>
      <td align="right" class="title01">商品库存数量：</td>
      <td align="left"><input value="1" name="proku1" id="proku1" runat="server" /></td>
    </tr>
    <tr style="display:none">
      <td align="right" class="title01">库存警告数量：</td>
      <td align="left"><input value="1" name="proku2" id="proku2" runat="server" /></td>
    </tr>
    <tr>
      <td align="right" class="title01">加入推荐：</td>
      <td align="left">
      
       <asp:CheckBox ID="proisnew1" runat="server" />
      <%=WebSite.fun.shuname("1") %> -->
        <asp:CheckBox ID="proisnew2" runat="server" />
        <%=WebSite.fun.shuname("2") %>
        <asp:CheckBox ID="proisnew3" runat="server" />
        <%=WebSite.fun.shuname("3") %>
        <asp:CheckBox ID="proisnew4" runat="server" />
        <%=WebSite.fun.shuname("4") %><!--<br />
        <asp:CheckBox ID="CheckBox1" runat="server" />
        拍照手机
        <asp:CheckBox ID="CheckBox2" runat="server" />
        音乐手机
        <asp:CheckBox ID="CheckBox3" runat="server" />
        智能手机
        <asp:CheckBox ID="CheckBox4" runat="server" />
        改版手机
        <asp:CheckBox ID="CheckBox5" runat="server" />
        超薄手机-->
        </td>
    </tr>
    <tr>
      <td align="right" class="title01">上架：</td>
      <td align="left"><asp:CheckBox ID="proisshow" runat="server" />
        打勾表示允许销售，否则不允许销售。</td>
    </tr>
    <!--tr>
      <td align="right" class="title01">是否在售：</td>
      <td align="left"><asp:CheckBox ID="proisp" runat="server" />
        打勾表示在售，否则缺货。</td>
    </tr-->
    
    <!--tr>
      <td align="right" class="title01">原装标配： </td>
      <td align="left"><asp:TextBox ID="promark" runat="server" Height="58px" TextMode="MultiLine" Width="340px"></asp:TextBox></td>
    </tr-->
    <tr>
      <td height="30" align="right" class="title01">&nbsp;</td>
      <td align="left"><asp:ImageButton ID="ImageButton1" ImageUrl="../images/buttom-02.gif" runat="server" OnClick="ImageButton1_Click" />
       <a href="javascript:form1.reset();"><img src="../images/button03.gif" border="0" /></a></td>
      </tr>
  </table>
  <br /></td>
</tr>
</table>
</center>
    </div>
    </form>
</body>
</html>
